Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Hackathon 6th No.25】为 paddle.histogram/paddle.nn.functional.threshold 进行功能对齐与功能增强 #63044

Closed
wants to merge 3 commits into from

Conversation

AndPuQing
Copy link
Contributor

@AndPuQing AndPuQing commented Mar 27, 2024

PR types

New features

PR changes

APIs

Description

Copy link

paddle-bot bot commented Mar 27, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Mar 27, 2024
Copy link

paddle-bot bot commented Mar 27, 2024

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 升级API需要注意平滑过度,兼容升级,确保不影响之前的代码运行
  2. 将两个修改拆分开,git commit保证一定的原子性

@@ -1745,7 +1745,7 @@

- op : histogram
inputs :
input : X
{input: X, weight: Weight}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

拆成两个PR:一个修改threshold,一个修改histogram

@@ -1336,8 +1336,9 @@
backward : heaviside_grad

- op : histogram
args : (Tensor input, int64_t bins = 100, int min = 0, int max = 0)
args : (Tensor input, Tensor weight, bool density = false, int64_t bins = 100, int min = 0, int max = 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个参数为何要插到最前面去?非常的不兼容,升级API原则是尽可能不要影响以前的功能

@@ -1745,7 +1745,7 @@

- op : histogram
inputs :
input : X
{input: X, weight: Weight}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weight应该是一个必选参数吗?

@zhwesky2010
Copy link
Contributor

zhwesky2010 commented Apr 1, 2024

@AndPuQing 另外,除了Approval和Static-check之外的CI都需要通过

Copy link

paddle-ci-bot bot commented Apr 7, 2024

Sorry to inform you that 33ba331's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@zhwesky2010
Copy link
Contributor

@AndPuQing paddle.nn.functional.threshold 的PR呢

@AndPuQing AndPuQing closed this Apr 12, 2024
@AndPuQing AndPuQing deleted the hack-no25 branch July 12, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants